In [28]:
from calico.widgets import GoogleChart
from calico.display import display
In [29]:
gc = GoogleChart("BarChart", keys=['Year', 'Sales', 'Expenses'], 
             data=[['2004',  1000,      400],
                   ['2005',  1170,      460],
                   ['2006',  660,       1120],
                   ['2007',  1030,      540]], 
             title='Company Performance', 
             vAxis={"title": 'Year',  "titleTextStyle": {"color": 'red'}})
display(gc)
In [30]:
gc = GoogleChart("BarChart", data=
                  [['2004', 1000,      400],
                   ['2005', 1170,      460],
                   ['2006', 660,       1120],
                   ['2007', 1030,      540]], 
             title='Company Performance', 
             vAxis={"title": 'Year',  "titleTextStyle": {"color": 'red'}})
display(gc)
In [32]:
gc = GoogleChart("ScatterChart", data=
             [[1000,      400],
              [1170,      460],
              [660,       1120],
              [1030,      540]], 
             title='Company Performance', 
             vAxis={"title": 'Year',  "titleTextStyle": {"color": 'red'}})
display(gc)
In [33]:
GoogleChart("Histogram", data=[6, 7, 8, 9, 3, 2, 6])
Out[33]:
In [34]:
gc = GoogleChart("AreaChart", data=[6, 7, 8, 9, 3, 2, 6])
In [35]:
gc
Out[35]:
In [21]:
gc = GoogleChart("ScatterChart", data=[6, 7, 8, 9, 3, 2, 6])
In [22]:
gc
Out[22]:
In [23]:
GoogleChart("PieChart", data=[["Pie I have eaten", .33], ["Pie I have not yet eaten", .67]])
Out[23]:
In [24]:
GoogleChart("LineChart", data=[6, 7, 8, 9, 3, 2, 6])
Out[24]:
In [25]:
GoogleChart("ColumnChart", data=[6, 7, 8, 9, 3, 2, 6])
Out[25]:
In [26]:
GoogleChart("BarChart", data=[6, 7, 8, 9, 3, 2, 6])
Out[26]: